package operation;

import book.Book;
import book.Bookshelf;

public class ShowOperation implements IOperation{
    public void work(Bookshelf bookshelf) {
        System.out.println("展示图书");
        int curSize = bookshelf.getUsedSize();
        for (int i = 0; i < curSize; i++) {
            Book book = bookshelf.getBook(i);
            System.out.println(book);
        }
    }
}
